Added a loop to do comparisons against images in a specified directory.