implementation of the "A Sentence is Worth a Thousand Pixels"