Improved code readability for Tile, added filepath function