Debayering with PInvoke