title: drawImage() in fabric js
body: <p>How to rewrite the following code with fabric js?</p>
  
  <pre><code>var canvas = document.createElement("canvas");
  var ctx = canvas.getContext("2d");
  ctx.drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight);
  </code></pre>
  
  <p>While using fabric js, it is not returning the context. Is there any way to return the context? I tried following code.</p>
  
  <pre><code>var fabricCanvas = new fabric.Canvas(ccr.options.candleCanvasId);
  fabricCanvas.drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight);
  </code></pre>
  
  <p>But it gave me an error "fabricCanvas.drawImage is not a function".
  How can I use the drawImage() with fabric js?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Using clipTo() in fabric js allows to achieve the crop functionality. But I want to modify the image shape. Check this link. <a href="https://stackoverflow.com/questions/18428355/how-to-bend-curve-a-image-in-html5-canvas">How to bend/curve a image in html5 canvas</a> . Here it is done by re drawing the image by changing the destination x and y positions. Is there any option in fabric js to get the context to use html5's default functions? Or is there any equivalent function for drawImage() ?</p>