Add optional lossy JPEG compression

These patches adds a `quality` setting to the `jpgmin` block which, optionally, enables lossy compression through `jpegoptim`'s `-m` flag. Without the setting, it continues to use lossless compression.