Improved solution for a colorspace / transparency issue

Improved solution for a colorspace / transparency issue that affects some types of images.

Reference:
[AFNetworking](https://github.com/AFNetworking/AFNetworking/blob/1.3.2/AFNetworking/AFImageRequestOperation.m#L78)