I've improved my image generation app to ensure that prompt information is consistently saved with each image. Previously, sometimes the prompt text wasn't being properly written to the image files, which made it difficult to remember what prompts created which images. I've added better error handling around the metadata writing process, with specific fallback options if something goes wrong. Now, even if there's a problem with one method of saving the information, the app will try another approach and clearly log what happened. This makes the whole process more reliable and helps me track exactly what prompts were used to create each image, which is essential for my workflow.