add image grouping