Compress and decompress working correctly.

arge images may present extra bytes