Support for drawing class instances