Fixed issue where image urls with query params were wreaking havoc on relationships.