Fix compiling error on XCode 6 beta 2

Instead of return NO, return nil instead as the expected return type is NSData
in the `-image` method.

[#74409372]