private void initializeFaceGrid()
        {
            faceGrid = new FaceImageGridUnit[IMAGE_MATRIX_WIDTH, IMAGE_MATRIX_HEIGHT];
            for (int i = 0; i < IMAGE_MATRIX_WIDTH; i++)
            {
                for (int j = 0; j < IMAGE_MATRIX_HEIGHT; j++)
                {
                    faceGrid[i, j]     = new FaceImageGridUnit();
                    faceGrid[i, j].Bmp = new RenderTargetBitmap(150, 150, 96, 96, PixelFormats.Pbgra32);

                    object element = FindName("FaceImage" + i + j);
                    faceGrid[i, j].ImageObj = (System.Windows.Controls.Image)element;

                    element = FindName("FaceImageGrid" + i + j);
                    faceGrid[i, j].ParentGrid = (Grid)element;
                }
            }

            currentMatrixRow    = 0;
            currentMatrixColumn = 0;
        }
        private void initializeFaceGrid()
        {
            faceGrid = new FaceImageGridUnit[IMAGE_MATRIX_WIDTH , IMAGE_MATRIX_HEIGHT];
            for (int i = 0; i < IMAGE_MATRIX_WIDTH; i++)
                for (int j = 0; j < IMAGE_MATRIX_HEIGHT; j++)
                {
                    faceGrid[i,j] = new FaceImageGridUnit();
                    faceGrid[i,j].Bmp = new RenderTargetBitmap(150, 150, 96, 96, PixelFormats.Pbgra32);
                    
                    object element = FindName("FaceImage" + i + j);
                    faceGrid[i,j].ImageObj = (System.Windows.Controls.Image)element;

                    element = FindName("FaceImageGrid" + i + j);
                    faceGrid[i,j].ParentGrid = (Grid)element;
                }

            currentMatrixRow = 0;
            currentMatrixColumn = 0;

            
        }