title: Canvas context drawImage() problem
body: <p>I basically want to put a shape that the user "cuts" from the main canvas to a random place in the main canvas. I hold the cut out shape's context and want to use;</p>
  
  <pre><code>ctx.drawImage(gctx,corx,cory);
  </code></pre>
  
  <p>to put gctx, which holds the context of the cut shape in to ctx, which is the main canvas context. Both are global and already set when they come upon the above code line. Also gctx is set as below;</p>
  
  <pre><code>ghostcanvas = document.createElement('canvas');
  ghostcanvas.height = canvas.height;
  ghostcanvas.width = canvas.width;
  gctx = ghostcanvas.getContext('2d');
  </code></pre>
  
  <p>From firebug i can see that there is a context in gctx, ctx is also there. So what am i doing wrong? </p>
  
  <p>Forgot to add the error message i got; </p>
  
  <blockquote>
    <p>The type of an object is incompatible
    with the expected type of the
    parameter associated to the object"
    code: "17 [Break On This Error]
    ctx.drawImage(gctx,corx,cory);</p>
  </blockquote>
  
  <p>Thanks in advance also sorry in advance if it's a major newbie question,</p>