diff --git a/HtmlBuilder.php b/HtmlBuilder.php
index ff22011..a4cbb87 100644
--- a/HtmlBuilder.php
+++ b/HtmlBuilder.php
@@ -44,6 +44,21 @@ class HtmlBuilder {
return html_entity_decode($value, ENT_QUOTES, 'UTF-8');
}
+ /**
+ * Generate an HTML image element.
+ *
+ * @param string $url
+ * @param string $alt
+ * @param array $attributes
+ * @return string
+ */
+ public function image($url, $alt = null, $attributes = array())
+ {
+ $attributes['alt'] = $alt;
+
+ return '
attributes($attributes).'>';
+ }
+
/**
* Generate a HTML link.
*