Create base class for graphic objects