<canvas id="canvas" width="640" height="480"></canvas>
<img alt="" id="myImage" src="myImage.jpg">
var canvas = document.getElementById('canvas'),
context = canvas.getContext('2d'),
image = document.getElementById('myImage');
context.drawImage(image, 0, 0, canvas.width, canvas.height);
image.parentNode.removeChild(image);