Text this: Non-line-of-sight imaging with arbitrary illumination and detection pattern