code: @Override
  	public int doEndTag() throws JspException {
  
  		try {
  
  			BinaryResourcesHandler rsHandler = null;
  			if ((rsHandler = (BinaryResourcesHandler) pageContext.getServletContext()
  					.getAttribute(JawrConstant.BINARY_CONTEXT_ATTRIBUTE)) == null)
  				throw new IllegalStateException(
  						"Binary ResourceBundlesHandler not present in servlet context. Initialization of Jawr either failed or never occurred.");
  
  			JawrConfig jawrConfig = rsHandler.getConfig();
  			this.renderer = RendererFactory.getImgRenderer(jawrConfig, isPlainImage());
  			this.renderer.renderImage(getImgSrcToRender(), getAttributeMap(), pageContext.getOut());
  		} catch (IOException e) {
  			throw new JspException(e);
  		} finally {
  			// Reset the Thread local for the Jawr context
  			ThreadLocalJawrContext.reset();
  		}
  
  		return (EVAL_PAGE);
  	}
docs: Render the IMG tag.
  
  @throws JspException
  if a JSP exception has occurred