fix the bugs in convert png file to shp file