@Override
    public int doStartTag() throws JspException {
        try {
            if (nameImg != null && !nameImg.isEmpty()) {
                JspWriter out = pageContext.getOut();
                out.write("<img class='" + classImg + "' id='" + idImg + "' src='");
                String path = pageContext.getServletContext().getContextPath();
                out.write(path + nameImg);
                pageContext.getOut().write("'>");
            }
        } catch (IOException e) {
            throw new JspException(e.getMessage());
        }
        return SKIP_BODY;
    }