code: public static void appendImage(XWPFRun run, String imagePath, int pictureType, int width, int height) throws
              IOException, InvalidFormatException {
          InputStream input = new FileInputStream(imagePath);
          run.addPicture(input, pictureType, imagePath, Units.toEMU(width), Units.toEMU(height));
      }
docs: 添加一张图片
  
  @param run {@link XWPFRun}
  @param imagePath 图片路径
  @param pictureType 图片类型
  @param width 宽度
  @param height 长度
  
  @throws IOException 异常
  @throws InvalidFormatException 异常