add an option to parse a direct EXIF buffer

This is useful for scenarios where another library is parsing the EXIF
data.