TileSet fix for images without margins

The rows/columns calculation breaks if the tileset image doesn't have a margin or padding on the last tile.
Rounding up the results fixes this.