How would one go about to create or display an image from MVC Controller?
<p>I'm new to MVC and trying to figure out it works. I'm just experimenting with simple projects, and there are somethings that are unclear.</p>

<p>Let's say I want to load an image depending on value (true or false from a checkbutton) from my controller. I have no problem with recieving the value from my view but how would I go in <strong>generating</strong> this html element?</p>

<p>A few ideas that comes to mind is.</p>

<ul>
<li>Use <code>IsVisible=false</code> attribute on already rendered image element and then just change that attribute with CSS</li>
<li>Use <code>ViewBag</code> to send data between <code>View</code> and <code>Controller</code></li>
<li>Use <code>Html.Helper</code> to create a "personalized" element.</li>
</ul>

<p>What is the way to go in creating element from a Controller and pass it to a View regarding "Best-pratice" ?</p>