Update compare-images.pl

fixed array initialization