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

...o the main branch
Let's be consistent with the name here, call the variable `store_reference_images` also you can specify a default when using `pop`, see https://docs.python.org/2/library/stdtypes.html#dict.pop