Fortunately, we can use a couple of edge-triggered flip flops to latch the output. A pair of diodes ensure that current doesn’t flow back to the camera when the outputs are high.