Support for all exif image orientations (except flipping)

Thank chris for the "cross-browser" ways to do it. Tested in Chromium and FF. Should work on IE9+ and Opera.