[TIMOB-14559] Rotate image based on orientation

Read Exif data from the image and rotate image if needed.
https://jira.appcelerator.org/browse/TIMOB-14559