public void AddImage(byte[] data, bool keyFrame)
 {
     aviWriter.AddImage(data, keyFrame);
 }