updating the image