Read JSON accelerometer data and set the photo orientation in EXIF