Implementation of JPEG and JPEG 2000 standards using DCT and DWT compression and decompression