Fix offset for an image.