refactoring + autoresize + multiple comparison

I’ve done a small refactoring for myself.
I’ve also enabled the possibility to compare an image against a list (directory) of images.
if you pass 2 images as input the output is the same as the old code.
if you want to take my code is ok .