improved image resizing
Merge branch 'master' of https://github.com/jcmack/hackfsm