Switch extension method from Core.Models.Media to IPublishedContent

Also added additional parameter to this extension method so that the propertyAlias can be something other than umbracoFile