A method for high-throughput functional imaging of single cells within heterogeneous cell preparations