Fix bug that make img be None in the first sample.

The first sample would not run because `cv2.circle` and `cv2.line` returns `None` according to [OpenCV Documentation](http://docs.opencv.org/modules/core/doc/drawing_functions.html).