adds images to groups