Image Compression Algorithm In Java