title: C# keep drawed images with Graphics.DrawImage
body: <p>I am trying to draw images on a panel with a click event.I managed to do that,but I want to keep the generated images.After each click,the previously generated image disapears.How can I keep all the drawed images?
  This is my code untill now:</p>
  
  <pre><code>private void drawdot(object sender,PaintEventArgs e)
          {
              Image dot = Image.FromFile("dot.png");
              var points = this.PointToClient(new Point(Cursor.Position.X-20, Cursor.Position.Y-30));
              e.Graphics.DrawImage(dot, points);
          }
  
  
  private void grid2_Paint(object sender, EventArgs e)
          {
              if(started==true)
              {
                  var points = this.PointToClient(new Point(Cursor.Position.X, Cursor.Position.Y));
                  coord2.Add(points.ToString());
                  clickuri2++;
                  test2_puncte.Text = "Testul 2 | Puncte: " + clickuri2;
                  //draw
                  grid2.Paint -= drawdot;
                  grid2.Paint += drawdot;
                  grid2.Invalidate();
              }
          }
  </code></pre>