Learning to Represent Images and Texts with Denotation Graphs