Relative Distance Method for Lossless Image Compression on Parallel Architecture