Lossless compression of Images