Change image preview behavior