Bug 1054326: Initial attempt to submit Imagecompare test framework and test cases int...

...o the main branch
I'm guessing this is using ImageMagick? I think it would make more sense to use PIL to get the size of the image and to crop it. See http://effbot.org/imagingbook/. Let me know if you need some help with this, or if there's a reason you avoided it.