Fix png_2_tmx.rb (collinear, degenerate, saddle points, reordering)