Check that image sizes match before compare

ImageMagick can hang when comparing images of different sizes.  Check that accepted and current are the same size before doing compare.

Also extracted the compare logic into a private method.  May want to extract compare and size check into a wrapper class at some point, but seems OK for now.