Terahertz imaging with a direct detector based on superconducting tunnel junctions