Update code according to Noah's comments

1. Modify document path set function
2. Update RenderRelativeImagePath function name to GetCanonicalLinkPath