photos with phonegap working