refresh image when a new image is uploaded