Spritemap module for HTML5 canvas