public static WriteableBitmap GrayScale(WriteableBitmap writablebitmap)
 {
     return writablebitmap.Gray();
 }