I have a program that generates images that are saved to a directory that is created everytime it runs. The program works fine when I run it through the command line but whe