refactor RelatedImage