HTML5 Canvas Photo Grid