title: Cant get the image to show in Umbraco7 with razor
body: <p>I have used the media picker as data type for the type, for which the user is going to choose what image they want as the deal image.</p>
  
  <p>But for some reason i can't get the razor syntax to show the image. If I make an If statement to check if the page contains an image then it won't. I think this is a problem that occurs because i have misunderstood something.</p>
  
  <p>My current razor statement:</p>
  
  <pre><code>&lt;img src="@Umbraco.TypedMedia(Model.Content.GetPropertyValue("deal1image")).Url" /&gt;
  </code></pre>
  
  <p>The above code won't show anything.</p>
  
  <p>Hope any of you can guide me to what i do wrong and evt. stuff I'm missing.</p>
  
  <p>This is how my current home.cshtml looks like:</p>
  
  <pre><code> @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
  @{
      Layout = "Master.cshtml";
  }
  &lt;div class="container"&gt;
      &lt;div class="col-md-4"&gt;
          &lt;!--Image here--&gt;
          &lt;img src="@Umbraco.Media(CurrentPage.deal1image).Url" /&gt;
  
  
          &lt;div class="thumbnail thumbnailcustom thumbnailbg1"&gt;
              &lt;h3&gt;@Umbraco.Field("dealtitle1")&lt;/h3&gt;
              &lt;p&gt;@Umbraco.Field("dealdescription1")&lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="col-md-4"&gt;
          &lt;!--Image here--&gt;
          &lt;div class="thumbnail thumbnailcustom thumbnailbg2"&gt;
              &lt;h3&gt;@Umbraco.Field("dealtitle2")&lt;/h3&gt;
              &lt;p&gt;@Umbraco.Field("dealdescription2")&lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="col-md-4"&gt;
          &lt;!--Image here--&gt;
          &lt;div class="thumbnail thumbnailcustom thumbnailbg3"&gt;
              &lt;h3&gt;@Umbraco.Field("dealtitle3")&lt;/h3&gt;
              &lt;p&gt;@Umbraco.Field("dealdescription3")&lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>