Image not showing in Partial View

Hi All

I am having a bit of a problem with displaying an image that has been selected with a media picker through a Partial View.

I have a pictureSectionImage and the Partial View code is as follows

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
<div class="row">
	@foreach (var childPage in CurrentPage.pictureSections.Split(','))
    {
		var page = Umbraco.Content(childPage);
			<div class="col-sm-3">
      			 <div class="work wow fadeInUp">
				@if(CurrentPage.HasValue("pictureSectionImage"))
					{
						<img src="@Umbraco.Media(CurrentPage.pictureSectionImage).Url" />
					}
                    <h3>@page.Name</h3>
                    <p>@page.pictureSectionText</p>
       			</div>
 			</div>
    }

It doesn’t error and it displays the Page Name and pictureSelectionText fine, but the Image doesn’t display even though it has been selected on the page.

Any Ideas what I am doing wrong?

Thanks

Ben


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/75051-image-not-showing-in-partial-view