title: SVG: stretching an image
body: <p>I'm playing around with the SVG tutorial and I simply loaded an image like this:</p>
  
  <pre><code>&lt;?xml version="1.0" standalone="no"?&gt;
  &lt;!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"&gt;
  
  &lt;svg style="stroke-linejoin:round; stroke:black; stroke-width:0.5pt; text-anchor:middle; fill:none" xmlns="http://www.w3.org/2000/svg" font-family="Helvetica, Arial, FreeSans, Sans, sans, sans-serif" height="400px" width="400px" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 250 250"&gt;
      &lt;rect y="0" x="0" height="250" width="250" stroke="black"  stroke-width="1" fill="blue" /&gt;
      &lt;image y="0" x="0" height="250" width="250" xlink:href="http://www.blueprintmodel.co.uk/images/DSCF1438.jpg" /&gt;
  &lt;/svg&gt;
  </code></pre>
  
  <p>I get image in the center of viewBox, over "rect", even if height and width are same.
  My questions are:</p>
  
  <ul>
  <li>How do I stretch an image to be size of rect?</li>
  <li>Why "height" in "image" tag doesn't do the job?</li>
  <li>Is there transformation like "stretch" or "resize" that I can use?(i couldn't find them)</li>
  </ul>