Wavelet processing for images