Build image_basename directly from metadata file.