Added smoothing libjpeg option

Added option to set smoothing_factor of libjpeg:
If non-zero, the input image is smoothed; the value should be 1 for
minimal smoothing to 100 for maximum smoothing.  The default is zero.