Update compare-images.pl

added check for titles