private void OnRendering(object sender, EventArgs e)
 {
     renderFrame.PushDrawCommand(Clear);
     renderFrame.PushDrawCommand(DrawEllipse);
     renderFrame.PushDrawCommand(FillEllipse);
     renderFrame.PushDrawCommand(DrawLine);
     renderFrame.FlushDrawCommand();
     imageSource.Invalidate();
 }