Corrected handling of multiple imagepaths per group