title: Saving Captured Images using javascript on intel XDK
body: <p>I'm trying to make an app which accesses the camera and captures images. The problem is I'm not able to save it. I'm pretty new to javascript and have been tweaking the code snippets provided by intel. I'm using the intel XDK new. Here's my code.</p>
  
  <pre><code>function capturePhoto() {
    AppMobi.camera.takePicture(50,true,"jpg");
  }
  
  function onSuccess(evt) {
  
    if (evt.success == true)
    {
      // create image 
      var image = document.createElement('img');
      image.src=AppMobi.camera.getPictureURL(evt.filename);
      image.id=evt.filename;
      document.body.appendChild(image);
    }
  
  }
  </code></pre>
  
  <p>I'm able to capture the image but I'm not able to store it on my device inspite of changing the boolean value in the function to true. </p>