Event handlers for Motion, a software motion detector