Implementation of Variable Size 2d DCT for Image Compression