An architecture for image compression through wavelet transform