Add Motion Detector.
Fix interpretation of RGB values in Motion Detector.