Added basic graphic functions.

Added basic graphic functions.