Add 'graphics' interface to encapsulate 'context2d'