You can use the following code to add an onclick event to the image so that the image is refreshed after being clicked:
<img src="your-image-url.jpg" onclick="this.src=this.src+'?'+new Date().getTime();" />When the image is clicked, this code adds a timestamp to the image's URL, which causes the browser to think this is a new URL and refresh the image.