Fixed CV_ELEM_SIZE problem