now replaces ALL matches of %img/%url