@Override
    public void paint(@NotNull Graphics2D g, int x, int y, int width, int height, Object object) {
      if (width > 0 && height > 0) {
        if (myImage == null || width != ImageUtil.getUserWidth(myImage) || height != ImageUtil.getUserHeight(myImage)) {
          myImage = createImage(width, height);
        }
        else if (myImage != null) {
          updateImage(myImage);
        }
        if (myImage != null) {
          StartupUiUtil.drawImage(g, myImage, null, x, y);
        }
      }
    }
@Override
    public void paint(@NotNull Graphics2D g, int x, int y, int width, int height, Object object)