title: Clone canvas with fabric js and continue editing
body: <p>I would like to clone canvas with fabric js and continue editing existing fabric js object in the clone canvas but it is not working. It shows that setBackgroundImage is undefined.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('#btnClick').on('click touchstart', function () {
      var canvas = document.getElementsByTagName("canvas");
      // canvas context
      var context = canvas[0].getContext("2d");
      // get the current ImageData for the canvas
      var data = context.getImageData(0, 0, canvas[0].width, canvas[0].height);
      // store the current globalCompositeOperation
      var compositeOperation = context.globalCompositeOperation;
      // set to draw behind current content
      context.globalCompositeOperation = "destination-over";
      //set background color
      context.fillStyle = "#FFFFFF";
      // draw background/rectangle on entire canvas
      context.fillRect(0,0,canvas[0].width,canvas[0].height);
  
      var tempCanvas = document.createElement("canvas"),
      tCtx = tempCanvas.getContext("2d");
      
      tempCanvas.width = 640;
      tempCanvas.height = 480;
    
      tempCanvas.setBackgroundImage('');
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;canvas&gt;&lt;canvas&gt;</code></pre>
  </div>
  </div>
  </p>