Deploying Wavelet Transforms in Enhancing Terahertz Active Security Images