Changed how the difference between screenshots is determined

Changed how the difference between two screenshots is determined. It uses root mean square (code copied from: http://code.activestate.com/recipes/577630-comparing-two-images/) to calculate how much has changed between each image. This overcomes the situation where a blinking network activity icon or blinking cursor generates multiple, almost identical, screenshots.