Avoid issues with corrupted exif data.