Use the -I argument to specify input directory of images. Use the -O argument to specify output directory of images.
The -O flag is an optional flag, if not given a directory will be created within the input directory and all images will be stored there.