Completed initial tileset engine. Tiles now display properly at resolutions divisible by the tilesize.