Moved JPEG's Huffman logic into the Huffman module