title: Saving DataURL to jpg
body: <p>I have the following code that turns an image file(jpg/png) to data url. Once cropping has been done, I can generate a rendered image, but it is saved as png. I need to be able to save the data url as a jpg.</p>
  
  <pre><code>renderButton.click(function (event) {
  var dataUrl;
  
  imgly.renderToDataURL("png", { size: "1280" }, function (err, dataUrl) {
  
  var image = $("&lt;img&gt;&lt;br&gt;").attr({
      src: dataUrl
    });
  
    image.appendTo($(".result"))
    $button = $('&lt;button class="btn btn-default remove"&gt;')
          .text('Remove')
          .on('click', function () {
              image.remove();
              $(this).remove();
              return false;
          });
      $button.appendTo($(".result"));;
  
      });
  });
  </code></pre>
  
  <p>Changing <code>"png"</code> to <code>"jpg"</code> in the renderToDataURL line has no affect. Any ideas?</p>