add graphics classes and functions