Add support for JPEG encoding with image/jpeg's API.