Implement the disposable pattern for canvas and canvas objects