Added clear method to Graphics.