Fix EXIF reading errors

Fix for some files with EXIF data can not be loaded due to read EXIF
data error