ARMORY-190 - Armory is unable to call Objective-C code on OS X

Optimized an image format conversion.