* rewrite pngmap
remove unused stuff