Added some simple graphic functions.