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

...o the main branch
Nit: Group imports according to PEP 8: http://legacy.python.org/dev/peps/pep-0008/#imports