Fixed OnDisposed event in graphics