Fix/2.3.x/ecms 3954

Convert BufferImage to InputStream directly via ImageIO instead of JPEGImage to avoid problem with transparent png images