Fixed problem with image preview in chrome