Image representation using time-varying wavelet packets, spatial segmentation and quantization