I\'m trying to save a graph image using BufferedImage, Graphics2D and JAIHelper, but for some reason one of every 4-5 pics is saved with data lacking (the image is cut off).