Saveguard against silently overwriting pages/images.
Rewording exception message.
Fixing typo in variable name.
Safeguard against adding images to non existing pages.
Wrap URLs in CDATA section if necessary.
Adding link to siteindex extensions.