refactor resize.py
Merge branch 'master' of http://github.com/lihe757/script