Modify the paths of images