@Override
    public BufferedImage getValue(double scale) {
      return imageProvider != null ? imageProvider.apply(scale, myComponent) : null;
    }
@Override
    public BufferedImage getValue(double scale)