code: public static Image createRectangleImage(String id, String url, 
  			double horMargin, double verMargin, double width, double height) {
  		Image i = new Image(id);
  		i.setHref(url);
  		i.setStyle(new PictureStyle(1));
  		i.setBounds(new Bbox(horMargin, verMargin, width, height));
  		return i;
  	}
docs: Creates an {@link Image} with full opacity (new PictureStyle(1)).
  horMargin, verMargin, width and height are used to create the {@link Bbox}
  @param id is used to create the actual {@link Image} (new Image(id)).
  @param url
  @param horMargin
  @param verMargin
  @param width
  @param height
  @return