code: private void init(final int WIDTH, final int HEIGHT) {
          if (WIDTH <= 1) {
              return;
          }
  
          if (batteryImage != null) {
              batteryImage.flush();
          }
          batteryImage = create_BATTERY_Image(WIDTH, HEIGHT - getInsets().bottom, value);
      }
docs: <editor-fold defaultstate="collapsed" desc="Initialization">