Add groups for images