Fixed cocos2d texture atlas usage.

Super cool API you got going there, cocos2d... :|