def __init__(self, imagePath):
    try:
      self.image = Image.open(imagePath)
    except __HOLE__:
      print 'Could not open image. Are you sure you entered the correct path?\n'
      sys.exit(-1)
    self.image = self.image.resize((_HEIGHT, _WIDTH),Image.BILINEAR)
    self.image = self.image.convert("L") # convert to mono
dataset/ETHPy150Open the-xkcd-community/the-red-spider-project/src/randomascii.py/AsciiGenerator.__init__