Calculate buffer size in WICBitmapSource.CopyPixels overloads as w*4*h