var canvas = document.getElementById("myCanvas");
var ctx = canvas.getContext("2d");
var w = window.canvas.width;
var h = window.canvas.height;
ctx.clearRect(0,0,w,h);
ctx.fillStyle="#fff";
ctx.rotate(0.2*Math.PI);
ctx.rect(0,0,w,h);
ctx.fill();
var imageObj = new Image();
imageObj.onload = function() {
ctx.drawImage(imageObj, 0, 0, 100, 110);
};
imageObj.src = 'https://media.licdn.com/mpr/mpr/shrinknp_200_200/AAEAAQAAAAAAAAaWAAAAJDIwOTM5MWI1LTgzYTItNGIwMy04ZTE1LTM2ZmFiMmY4NWYyYg.jpg';