sentence1: image is selected using a graph-based method that makes use of both textual and visual information .
sentence2: images are ranked using a graph-based method that makes use of both textual and visual information .