Replace images relations with the generic relationship one.