protected override void OnClosed(EventArgs e)
 {
     // TODO: refactor - dispose should happen in Dispose event
     unsafe {
         BitmapUtility.DisposeBitmap((void *)m_BitmapPtr);
         BitmapUtility.DisposeCachedBitmap((void *)m_CachedBitmapPtr);
     }
 }