optimizeimages: Add jpegoptim interface

Only options that appear to be interesting for us have been exposed,
namely -m and -S.
optimizeimages: Add documentation for jpegoptim
Merge pull request #1163 from CounterPillow/optimizeimg-fixes

Add jpegoptim interface to optimizeimages