Fix JPEG images not loading properly on iOS 4.3.x

Please refer to this thread for more details on the issue : http://www.cocos2d-x.org/boards/6/topics/17929?r=17955
Fix verified on iPad 1st gen 4.3.3 and iPad 2nd Gen 4.3.3