Ha. I was on the same track last night. I am looking at a differentiator circuit. Output is based on the rate of change of the input. So I can use a light to voltage converter and then run the output voltage from that into a differentiator circuit. I am thinking this might take care of ambient light(hopefully) and give a larger voltage when a flash of light hits the sensor. Any thoughts?