made all <a>s and <img>s relative