Enhancing the connection between text and images