Generation and detection of terahertz pulsed radiation with photoconductive antennas and its application to imaging