fn count_non_nested_images_with_component(
    image_dimensions: &IntMap<EntityPath, MaxDimensions>,
    entity_bucket: &IntSet<EntityPath>,
    entity_db: &EntityDb,
    subtree: &EntityTree,
    component_name: &ComponentName,
) -> usize