Marmalade webp fixes

Add some fixes for webp image format in marmalade. 
Tested with simultator and android