Drawing functions returns Null in OpenCV 2.4