[Tileset] drawTile function improved.