Removed duplicated logic in exif parser.