Corrects url for path for images.