nanshe/wavelet_transform.py: In wavelet_transform, added slight modification to avoid generation of another temporary.