updating preview img