How to view upload button after uploading the image

So I’ve added an upload button to upload the image and added the code to hide it when the image is uploaded. I want to keep the upload button hidden but want to make it visible once the mouse goes on the image so that I can provide the user the option to change the uploaded image. How can I do that?