A simple motion detection based snapshot taking device