Base graphic class