fixed bug with undefined exif data, was clearing exif data buffer too early