Single-photon imaging in complementary metal oxide semiconductor processes