writeJpeg

private fun writeJpeg(image: BufferedImage): ByteArray

The long form, because ImageIO.write gives no way to set the quality.