Corrected parsing of the threshold map and fixed incorrect increment.
Corrected parsing of the threshold map and fixed incorrect increment.

Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick,Danack/ImageMagick