clone for github.com/nfnt/resize  and add smooth method