HTML5 Canvas image preloader