title: Assign html attributes to url link in CakePHP's HtmlHelper's image
body: <p>I am trying to find a way to set attributes to the link URL generated by the image method of CakePHP's HtmlHelper. I'm using CakePHP 2.2.1</p>
  
  <p>For example, the following code:</p>
  
  <pre><code>echo $this-&gt;Html-&gt;image("recipes/6.jpg", array(
      "alt" =&gt; "Brownies",
      'url' =&gt; array('controller' =&gt; 'recipes', 'action' =&gt; 'view', 6)
  ));
  </code></pre>
  
  <p>generates:</p>
  
  <pre><code>&lt;a href="/recipes/view/6"&gt;
      &lt;img src="/img/recipes/6.jpg" alt="Brownies" /&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>How can I add attributes to the href tag. Say, for example, class='picture' to look like:</p>
  
  <pre><code>&lt;a href="/recipes/view/6" class='picture'&gt;
      &lt;img src="/img/recipes/6.jpg" alt="Brownies" /&gt;
  &lt;/a&gt;
  </code></pre>