added a shape generator and fixed a bug in bin/png