Updating preview image.