add photos handling and multiple groups