I think I’ve managed to get it working by editing the tileset in Tiled then changing the image reference here:
I had a little look at the map file after changing it and I’m prettty sure it does the same thing as what you’re saying