utils/post_lint: make it work with python2
utils/post_lint: ignore more image patterns