Taking pictures in the dark