Add support for imagegroups