[Issue #1181] Using UIImage calculated image orientation

Minor refactoring
Merge branch 'master' of github.com:AFNetworking/AFNetworking