C# application that detects and records motion from connected camera