Write to PNG directly via BufferedImage, not through a JavaFx image