[rt #94292] add jpeg_optimize to enable optimized Huffman tables

This can significantly reduce file size, but uses more memory and time.

For one sample image (mostly sky), this reduced the file size from
445930 bytes to 272933 bytes, with a 12% increase in CPU usage.
update Changes