CCImage::saveToFile is implemented for Mac.

Used the code from IOS and adapted it for Mac. RenderTextureTest tests it.