Update compare-images.pl

find the match of the id