code: def dump_img(fname):
      
      img = Image.open(fname)
      width, _ = img.size
      txt = ''
      pixels = list(img.getdata())
      for col in range(width):
          txt += str(pixels[col:col+width])
      return txt
docs: output the image as text