Credit card-sized device focuses terahertz energy to generate high-resolution images