Added doctest for unrelate_images_and_encounters