Creating/Drawing multiple images on canvas html5
<p>I was wondering what I was doing wrong because I'm making a memory game but the images wouldn't draw on my canvas.</p>

<pre><code>    var ctx; 
    var cardBacks = "Resources/monster.png"; //shows back of card when turned over
    var faces = []; 
    var tiles = [];
    var Tile;
    var columns = 5;
    var rows = 4;

    function createTile(x,y){
        this.x = x;
        this.y = y;
        this.width = 70;
        ctx.drawImage(cardBacks, this.x, this.y, this.width, this.width);
    }

    function initialize(){
        ctx = document.getElementById("myCanvas").getContext("2d");
        for (var i = 0; i &lt; columns; i++) {
            for (var j = 0; j &lt; rows; j++) {
                tiles.push(createTile(i * 78 + 10, j * 78 + 40));
            }
        }
    }
</code></pre>