Transmission of images with subwavelength resolution to distances of several wavelengths in microwave, terahertz and infrared ranges