added character distribution of the alt texts, had to switch to writing the output directly because unicode characters got involved