Support for Paint.net 4, Upgraded SharpDX, CopyMemory optimizations