[Issue #1580] [Issue #1589] Porting AFNetworking 1.x behavior for image construction in inflation to ensure correct orientation