Use the EXIFR::JPEG#to_hash method, not #exif