added contour rectangles to trackMotion2_gray.py