Enhancement of contrast and spatial resolution in confocal coherent terahertz imaging system