Fixed bug when an image doesn't contain EXIF information, found by Hu Jekkay