title: Converting a .txt file to an image in Python
body: <p>I have some code that converts an image into an ascii art image. 
  Currently it outputs it as a .txt file, but the file can have several hundred thousand characters. How can I convert the file to an image such as a .png file?</p>
  
  <p>Currently it builds a character vector based on the pixel density, and then writes the vector into a .txt image.</p>