code: @Override
      protected void renderImage(float x, float y, float width, float height, ImageResource resource) throws IOException
      {
          //DOM element
          Element el = createImageElement(x, y, width, height, resource);
          curpage.appendChild(el);
          //Image box
          BlockBox block = createBlock(pagebox, el, true);
          block.setStyle(createRectangleStyle(x, y, width, height, false, false));
          pagebox.addSubBox(block);
      }
docs: /*protected void renderRectangle(float x, float y, float width, float height, boolean stroke, boolean fill)
  {
  DOM element
  Element el = createRectangleElement(x, y, width, height, stroke, fill);
  curpage.appendChild(el);
  Block box
  BlockBox block = createBlock(pagebox, el, false);
  block.setStyle(createRectangleStyle(x, y, width, height, stroke, fill));
  pagebox.addSubBox(block);
  }