Fixed several bugs

- width and heigth replaced by rows and cols with Mat element
- cvGet2D returns a CvScalar instead of Scalar --> use of at<float> operator