Camera with motion detection