added C# AVI API, and add references to system.Drawing