converting images to haar wavelets and reconstructing the image