Continuing work on moving graphics code to graphics.{c,h}.
Finally moved all graphics code to graphics.{c,h}. (Probably all.)