Implemented auto rotate event listener on image.put event.
The event listener calls upon the autoRotate transformation transformin the image based on the exif orientation tag; rotating and flipping the image if necessary before setting the orientation exif tag.