A possible mechanism of image recognition by molecules and the design of receiving-and-transforming systems