removed the DEBUG preprocessor define
use UIImage or NSImage depending on the platform, fixed a memory leak on the image returned by -profileImageFor:successBlock:errorBlock: