Change image src based on style width + height
<p>I have an asp.net mvc project, and a function that streams out an image based on url parameters. like: /Image/40/100/50 streams out image with ImageID 40, 100px wide and 50px high.</p>

<p>So is there a way to change:</p>

<pre><code>&lt;img class="image" src="/Content/View?fileID=31" style="width: 500px; height: 100px; " /&gt;
</code></pre>

<p>To:</p>

<pre><code>&lt;img class="image" src="/Image/31/500/100" style="width: 500px; height: 100px; " /&gt; 
</code></pre>

<p>In some fancy way?
/Lasse</p>
