Added a function to get rid of small objects as well as a function to draw a motion track.

Note the function to draw a motion track may be unnecessary due to
OpenCVs motion history functionality.