after getting error from my own app (Thinking is not enabled for this model)
it looks like gemini-2.5 flash image does not support thinking / reasoning based on this url
https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/2-5-flash-image