* @param style
*/
public static void image(
SafeHtmlBuilder builder, String id, String style, SafeHtml url, SafeHtml info, String kind) {
String safeUrl = url != null ? EscapeUtils.sanitizeUri(url.asString()) : null;
SafeHtml img = EscapeUtils.fromSafeConstant("<img " //
+ "id='" + id + "' " //
+ "class='" + style + "' " //
+ (safeUrl != null ? "src='" + safeUrl + "' " : "") //
+ (info != null ? " alt='" + info.asString() + "' title='" + info.asString() + "' " : "") //
+ (kind != null ? " " + KIND_ATTRIBUTE + "='" + kind + "'" : "") //