function getAssetPath(token, imagesDir) {
  const name = token.path.slice(2, 4).join('_');
  const dir = `${imagesDir}${token.attributes?.state}`;
  return { file: join(dir, `${name}.png`), dir };
}
@param {Token} token
@param {string} imagesDir