I've spent a little time trying to figure this out, but I haven't come up with much yet. I added the following to the main index.php:
echo (in_context(ZP_IMAGE));
When I'm on the main page or an album page this always returns '0', which I think is appropriate. However, when I click on an image in an album this also returns '0', which I think is the problem becuase it will never execute the include("$themepath/$theme/image.php"); statement.
In short, I think the context is not getting set properly at some point, but I haven't figure out where or why. Any suggestions or thoughts would be appreciated.
Thanks,
- MW