[mms-lib] Implemented libjpeg-based scaling

Now ImageMagick is only used for scaling non-JPEG images.