Single-shot ultrafast terahertz photography