Use promises in the TileSource class