Allow setting of image type to more than just OF_IMAGE_GRAYSCALE.
Some fixes in calcFlow when OpenCV is a newer visior with buildOpticalFlowPyramid.