Hi Richard.
Yes, I'm agree with you. I think it's not possible to use php in a mustache template file.
But it works fine creating a value in the context.
It would be nice if you (or someone else) can fix the docs page about using images ;)
Thanks a lot!