correct the path of images