png stuff for math