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

changed the resize alghorithm