Update compare-images.pl

Initialization error fixed.