Version 0.4.1: Made key_image_related to a raw_id field if it exists