handle black and white motion detect