code: public Image addImage(File file) throws IOException {
          String contentType = ImageUtils.getContentType(file);
          String base64Content = ImageUtils.getImageAsBase64(file);
  
          Image image = new Image(file.getName(), contentType, base64Content);
          documentation.addImage(image);
  
          return image;
      }
docs: Adds an image from the given file to the workspace.
  
  @param file              a File descriptor representing an image file on disk
  @return                  an Image object representing the image added
  @throws IOException      if there is an error reading the image