Relativize image paths.