Fix loading of images by relative url.