adding EncodingType to correct orientation

see at: http://stackoverflow.com/questions/17743557/image-took-from-gallery-is-displayed-in-different-orientation-while-using-phoneg