main sdgen fixes; change to_png and sdgen.sdgen to call PNGBuilder