I am binarizing multiple images from a folder and saving them into another folder. I am doing this through a loop. My problem is that when I saved these images into another folder, they were all under the same file name. I want them to keep the same file name as before, but just in a different folder. End result is to have a folder of images with a specific file name, and another folder with the binarized images with the same file name as before. If its not possible to have the same file name, it is preferred to have a file name that is similar prior to binarization.