encodes text into pictures