NF: Added ability to pad resample to next power of 2