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

...o the main branch
thanks, I'll take a look. do you think this is something we could live with? how many tests does it affect?