Store ContentId against the LinkedResource

ContentId is not being set for the LinkedResource so once rendered, the cid value in the HTML content can't be found as it isn't named.