Updating the preview image