Capture photo with phonegap