stream realization of lzw. Finally can compress image