getImageQueryForPackage = async function(packageName) {
  // get the image url
  const pkg = await loadPackage(packageName);
  const imageUrl = pkg.image;
  if (!imageUrl) return null;
  const width = config.packageExtra.image.width;
  const height = config.packageExtra.image.height;
  const fit = pkg.imageFit == "contain" ? "contain" : "cover";
  return { imageUrl, width, height, fit };
}
Get image query data for a package, return { imageUrl, width, height, fit }
@param {string} packageName