<canvas id="myCanvas" width="1026" height="768"></canvas>
var newImg = new Image;
newImg.onload = function() {
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.drawImage(this, 0, 0, 1026,768);
}
newImg.src='monitor.png'