move the drawing of input image out of the for loop of drawing contours
Merge pull request #2 from raphaelfeng/patch-1

move the drawing of input image out of the for loop of drawing contours