Include logic to grab image difference value. 
If it "0" then images are same other wise it fails.