[*] replace JpegEncoder with ImageIO