Add a generic relationship model used for images.