Encode rgb images using DCT, quantize the values and decode based on basline, spectral selection or successive approxmation mode