I am developing software using VB.net and the OpenXML library to substitute translations and screen captures into a master Microsoft Word document in English. The purpose is to create new, target-language Word documents of the originals. Text has its challenges (multiple runs of text for a single string of formatted text, just to name one). Graphics, on the other hand, move things to a whole new level of complexity. Replacing an image requires the software to understand the layout information of the original image for insertion of the new image, and this gets very tricky.
I had been working with Gemini 2.5 Pro in developing the software, but the images were being sized incorrectly upon insertion into the new document. After one version that distorted the images upon insertion, the next version had images extending beyond the edge of the page like this:

That portion of the page should in fact look more like this:

Even that version, however, is not ideal. The screen capture is from the software being explained and does not occupy such a significant portion of the screen, which wastes space in the final document.
So, after that version, I returned to Gemini Pro 2.5 with this prompt:
That works better, but some of the graphics were captured at such a high resolution that they filll the whole page. Give me no new code, but give me some ideas to think about. I am thinking that I might also need to furnish you with the actual XML of the file so you can see what we might use. In the original version, the images were sized for a better page layout, so there must be some way to get that info.
Beyond wording in the response that was sycophantic at times, I found the use of metaphors rather intriguing:
- “The “scale to page width” logic is a sledgehammer. It’s a great fallback, but what we really need is the scalpel—the exact dimensions the original author intended”
- “Golden Ticket”
- “we were essentially replacing the engine of a car but leaving the original chassis, wheels, and body. The new engine was too big for the chassis.”
Here is the excerpt from the exchange that contains the use of metaphors:

Wanting to reflect more on what I was seeing there, I asked Anthropic’s Claude:
Is the use of metaphors more than clever syntax?
The full response was quite interesting and seemed to confirm what I was thinking: LLMs often appear to be doing more than simply placing the next word in a sentence according to statistical probabilities! Here is the final paragraph from Claude’s response:
So while metaphors can certainly serve as elegant rhetorical devices, their primary significance lies in their role as cognitive tools that structure thought, enable conceptual understanding, and mediate between abstract and concrete domains of experience.
Now, on to the next version of my code to to replace images!
Note: I use Simtheory.ai to access all the primary LLM engines, which I highly recommend: For one reasonable fee, the subscriber has access to many models.