Camera with motion detector