General embedded quantization for wavelet-based lossy image coding