Image to ASCII converter in Python