Minor cleanup in graphics library