updated LEDDetection code to save one in 30 frames