Added Tile Drawing API
Moved into core.js