How to change image after clicking button

I have an existing image which i want to replace after the user click the button. How do i change the image in dashboard?