Probabilistic modeling of wavelet coefficients for processing of image and video signals