Providing safety and security through terahertz imaging