added jpeg with optimized coding support.
Merge pull request #2379 from ngryman:optimize_jpeg