An apparatus and method for depth selected fluorescence measurements is provided. The imaging device generates images of the region of the patient. A square wave signal corresponding to the square wave driven on the write path is delayed by a predetermined phase thus generating a delayed signal.