Merge pull request #18 from Jeavon/master

Tweaks to ImageGen and some null checks on 2 string methods
Switch extension method from Core.Models.Media to IPublishedContent
Merge remote-tracking branch 'upstream/master'