Implement base class for all renderers.