Added a feature to compute the Euler number of a bitmap/character