download image to iphone photo gallery with phonegap