Adaptive DCT for image data compression