_cacheImage = async function(pkg, packageName, force) {
  logger.info({ pkg: packageName }, "_cacheImage");
  try {
    const query = await PackageExtra.getImageQueryForPackage(packageName);
    if (!query) return;

    // check cache
    let imageEntry = await getImage(query);
    if (!force && imageEntry && imageEntry.available) {
      logger.info({ pkg: packageName }, "_cacheImage cache is available");
      return;
    }

    // add image
    const duration = config.packageExtra.image.duration;
    await addImage({
      ...query,
      duration,
      force,
    });
  } catch (error) {
    logger.error(
      httpErrorInfo(error, { pkg: packageName }),
      "_cacheImage error"
    );
  }
}
Cache the image url
@param {object} pkg
@param {string} packageName
@param {Boolean} force