title: How to remove tilde (~) from rendered image URL's with Razor?
body: <p>In Umbraco (4.7.0), I'm using a small Razor script to render images from an image property but even though this method is receiving the correct information, the images won't display; a tilde is always generated in front of the URL but this is actually stopping the image from displaying. Is there a way (or perhaps an alternative method of rendering media altogether) to remove the tilde?</p>
  
  <p>This is essentially what's in the razor script, with primaryImage being the image property:</p>
  
  <pre><code>&lt;img class="primary-image" src="@Model.MediaById(Model.primaryImage).umbracoFile" alt="@Model.MediaById(Model.primaryImage).Name"&gt;
  </code></pre>
  
  <p>This snippet actually sits within a foreach loop, to render an image if the property has one.</p>