Image rotation issue fixed.

The uploaded image is no longer incorrectly rotated. Since only the
portrait pictures were rotated, the code checks if the picture was taken
vertically and rotates it if so before passing it to Parse.