modify the path of photo