(JPEG) Restoring the correct Huffman implementation of the encoder