Builds basic gallery/image/product relationships