updating preview image