There are a few reasons why the i.php link would be there
1. It has been cached, so will never change
this could happen by the Zenphoto static HTML cache or from a server cache
2. The `Protect image cache` option set to force always running i.php.
3. There is some kind of failure in the rendering. Then there should be log entries.