add a motion detect using diff