new command-line argument -i to pass the image folder