updating the image id.