update the image