Optimization and implementation of the integer wavelet transform for image coding