Update MainPage.xaml.cpp

Fix glaring bugs in the conversion routines from and to WriteableBitmap/cv::Mat