Sorry to bumb up a 7-month old thread, but I had the exact same problem.
Chuck's code that helped testaj doesn't work for me in 6.11. I looked through showphoto.php and $stylepath is defined in the end, right before the showphoto.tmpl include. quickcom.tmpl is included over 200 rows earlier so it can't get the right $stylepath.
I got it working when I added the code to showphoto.php right before the if where quickcom.tmpl or quickcom367.tmpl is included. EDIT:
Chuck's code works when you insert it in the right quickcom template.
But still the bug is in showphoto.php, and too late $stylepath definition.