Hey David,

thank you, it seems that for some reason the CCImage.js file was not included in our build, thus making the call fail.

I'll send a new, clean pull request with the call to `cc.getImageFormatByData()` back in place shortly.