Add a --resize option as a sort-of workaround for #26 and #21.