Image data compression using wavelet decomposition