Lots of changes, almost able to generate map from PNG