Separated out wavelet DCT code