updates preview image