Replaced custom resize with github.com/nfnt/resize