public static @NotNull BufferedImage createImage(Graphics g, int width, int height, int type) {
    return createImage(g, width, height, type, PaintUtil.RoundingMode.FLOOR);
  }
public static @NotNull BufferedImage createImage(Graphics g, int width, int height, int type)