Update the preview image.