Hierarchical image model fit