Fix the path to an image.