Watch this Author's files
This is awesome. I have two suggestions that may be helpful.
1) The size of the rectangular that you use to replace ASCII characters is fixed to 4*7. Can you let the program adjust it automatically according to the actual size of the image?
2) In Line 54, I guess the default value of which_char is better to be 0, not 1. Otherwise, the space character will not be used in the TXT figure.