Fixed error with imagepreview when exifread is not available