Learning Sparse Wavelet Representations