I do what Mortgen has mentioned. There are a few ways on how you can increase performance however, as when you take the screenshot, the images are quite big.
1. after taking the screenshot, resize the images to say 50% prior to compare
2. compare the images using a checksum or something ... this is perfect if you just want to know if the images are supposed to be an exact match.