Fixed a major bug with the command line argument --numImages