implementation of "A Sentence is Worth a Thousand Pixels"