Context relevance analysis and understanding of visual media