Now using OpenCV for scaling, thresholding, dilating etc