Impossible to save jpg images
After resolving issue 488 adding alpha channels, it is no longer possible to save jpg files. This (implementation of this) format doesn't support alpha channels.
diff --git a/xchart-demo/src/main/java/org/knowm/xchart/standalone/issues/TestForIssue488.java b/xchart-demo/src/main/java/org/knowm/xchart/standalone/issues/TestForIssue488.java
index 144ac4a2..9c5d160d 100644
--- a/xchart-demo/src/main/java/org/knowm/xchart/standalone/issues/TestForIssue488.java
+++ b/xchart-demo/src/main/java/org/knowm/xchart/standalone/issues/TestForIssue488.java
@@ -28,6 +28,12 @@ public class TestForIssue488 {
     chart.getStyler().setSeriesColors(sliceColors);
     chart.getStyler().setChartTitleBoxVisible(false);
     chart.getStyler().setHasAnnotations(false);
+    chart.getStyler().setChartBackgroundColor(new Color(255, 255, 255));
+    //    chart.getStyler().setChartBackgroundColor(new Color(0, 255, 0, 25));
+    //    chart.getStyler().setChartBackgroundColor(new Color(0, 255, 0));
+    chart.getStyler().setPlotBackgroundColor(new Color(255, 255, 255));
+//        chart.getStyler().setPlotBackgroundColor(new Color(0, 0, 255, 20));
+//        chart.getStyler().setPlotBackgroundColor(new Color(0, 0, 255));
     //    chart.getStyler().setChartBackgroundColor(new Color(255, 255, 255));
     //    chart.getStyler().setChartBackgroundColor(new Color(0, 255, 0, 25));
     //    chart.getStyler().setChartBackgroundColor(new Color(0, 255, 0));
diff --git a/xchart/src/main/java/org/knowm/xchart/BitmapEncoder.java b/xchart/src/main/java/org/knowm/xchart/BitmapEncoder.java
index d6670b59..2e9cf41c 100644
--- a/xchart/src/main/java/org/knowm/xchart/BitmapEncoder.java
+++ b/xchart/src/main/java/org/knowm/xchart/BitmapEncoder.java
@@ -275,7 +275,7 @@ public final class BitmapEncoder {
   public static BufferedImage getBufferedImage(Chart chart) {
 
     BufferedImage bufferedImage =
-        new BufferedImage(chart.getWidth(), chart.getHeight(), BufferedImage.TYPE_INT_ARGB);
+        new BufferedImage(chart.getWidth(), chart.getHeight(), BufferedImage.TYPE_INT_RGB);
     Graphics2D graphics2D = bufferedImage.createGraphics();
     chart.paint(graphics2D, chart.getWidth(), chart.getHeight());
     return bufferedImage;
['xchart/src/main/java/org/knowm/xchart/BitmapEncoder.java', 'xchart-demo/src/main/java/org/knowm/xchart/standalone/issues/TestForIssue488.java']