changed the resize alghorithm
Merge pull request #183 from giastfader/master

changed the resize alghorithm