create imagefiles and fixed flake8 issues