added image model with a relationship to the image groups