only use data url for legend images if in same domain