modify path of image