Fix absolute URLs to images in html templates