Refs #66. Updates and refactoring based on internal changes
Refs #66. If there's no relationship, return the text
Refs #66. Updated the image_handler signature
Refs #66. Stop monkey patching the image_handler
Pass along relationships instead of rels_dict
Refs #66. Updated relationships