code: @Override
  	public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
  		WImageEditor editorComponent = (WImageEditor) component;
  		XmlStringBuilder xml = renderContext.getWriter();
  
  		xml.appendTagOpen("wc-imageedit");
  		xml.appendAttribute("id", editorComponent.getId());
  		xml.appendOptionalAttribute("class", editorComponent.getHtmlClass());
  		xml.appendOptionalUrlAttribute("overlay", editorComponent.getOverlayUrl());
  		xml.appendOptionalAttribute("camera", editorComponent.getUseCamera());
  		xml.appendOptionalAttribute("face", editorComponent.getIsFace());
  		xml.appendOptionalAttribute("inline", editorComponent.getRenderInline());
  
  		// Check for size information on the image
  		Dimension size = editorComponent.getSize();
  		if (size != null) {
  			if (size.getHeight() >= 0) {
  				xml.appendAttribute("height", size.height);
  			}
  
  			if (size.getWidth() >= 0) {
  				xml.appendAttribute("width", size.width);
  			}
  		}
  
  		xml.appendEnd();
  	}
docs: Paints the given {@link WImageEditor}.
  
  @param component the WImageEditor to paint.
  @param renderContext the RenderContext to paint to.