Fix relative paths for images.