filterImage IplImage bugs