Handle its event handler to refresh the image.