Looks like a problem with your GD module, which is responsible for drawing graphs. You could try recompiling it or installing it from a OS package. Other people have experienced this same problem. Good luck!
WeBWorK Main Forum
PGgraphmacros problem
This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 10 posting(s) in 1 day