add checkMotion that is much more immune to false positives caused by jpg encoding and image jitter