script to compare images