ctx.fillRect(0,0,100,100); var imagedata = ctx.getImageData(0,0,100,100); putImageData(ctx, imagedata, 150, 0, 50, 50, 25, 25);