MATLAB implementation method for compressing images by DCT and DWT