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

...o the main branch
You could rewrite this as follows to avoid the additional if statement:
```python
screenshots = [f for f in files if os.path.splitext(f)[1] == '.png']
for filename in screenshots:
    ...
```