Added debug routined to Graphics