Add optional optimize_coding param to JPEG output methods to compute optimal Huffman coding tables, defaults to FALSE.