Updating the image size.