Adding 'ref' parameter to guid and image urls