Changed passed argument name from "filter" to "resample" in image.resize().