Program producing a polygonal approximation of a PGM image, containing edges one-pixel wide
Uses the Adaptively Improved Douglas-Peucker Algorithm