Added the sample from patch #2288 : reading in sequence of images

Added bugfixes
- Changed CV_WINDOW_NORMAL to 1
- Changed the help function to static
- Added extra help information on mask specifics