code: public int getHeight() {
          try {
              return ((RemoteWebElement) getElement()).getSize().height;
          } catch (NumberFormatException e) {
              throw new WebElementException("Attribute " + HEIGHT + " not found for Image " + getLocator(), e);
          }
      }
docs: This function is to get image's height.
  
  @return the image's height
  
  @throws WebElementException