writer.startElement(HtmlConstants.SPAN, component);
writer.writeClassAttribute();
writer.writeAttribute(HtmlAttributes.TITLE, title, true);
writer.startElement(HtmlConstants.IMG, null);
StyleClasses color1Classes = new StyleClasses();
color1Classes.addClass("progress", "color1");
color1Classes.addMarkupClass(component, "progress", "color1");
writer.writeClassAttribute(color1Classes);
writer.writeAttribute(HtmlAttributes.SRC, image, false);
writer.writeAttribute(HtmlAttributes.ALT, title, true);
writer.writeAttribute(HtmlAttributes.WIDTH, width1, false);
writer.writeAttribute(HtmlAttributes.BORDER, 0);
writer.endElement(HtmlConstants.IMG);
writer.startElement(HtmlConstants.IMG, null);
StyleClasses color2Classes = new StyleClasses();
color2Classes.addClass("progress", "color2");
color2Classes.addMarkupClass(component, "progress", "color2");
writer.writeClassAttribute(color2Classes);
writer.writeAttribute(HtmlAttributes.SRC, image, false);
writer.writeAttribute(HtmlAttributes.ALT, title, true);
writer.writeAttribute(HtmlAttributes.WIDTH, width2, false);
writer.writeAttribute(HtmlAttributes.BORDER, 0);