Export big images as jpeg 10841 dev 4 4 (rebased onto develop)



This is the same as gh-49 but rebased onto develop.

----

Fix the last PEP8 issues noted in https://github.com/ome/scripts/pull/45. Flake8 test should pass.