Top-down Analysis of Low-level Object Relatedness Leading to Semantic Understanding of Medieval Image Collections