Jimy,
<!DOCTYPE HTML>
<html>
<head>
<script>
var imagePath = ['https://pp.userapi.com/c633918/v633918277/3ce19/QJAj0GIFXKE.jpg',
'http://cdn.the-village.ru/auth.look-at-media.com/profile-userpic/ydBwHC0x7Lysk6P_GiT17Q.jpg'],
index = 0;
function imgChange() {
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
var img=new Image();
img.onload = function(){
ctx.drawImage(img,0,0);
};
img.src=imagePath[index];
index = ++index % imagePath.length;
}
</script>
</head>
<body onload="imgChange()">
<canvas id="myCanvas" width="200" height="200"
style="border:1px solid #c3c3c3;" onclick="imgChange()">
Your browser does not support the canvas element.
</canvas>
</body>
</html>