fixes in imgproc