Add .resize(w, h) method. Close #322