Determining the Communicative Purpose of Text and Illustration