Better encapsulation of graphics data