use BufferedImage.TYPE_3BYTE_BGR to avoid byte array transformation on webp encoding