Sorry, I missed the snippets for the template at the end of the cookbook.
I thought preview
file method refers to previewing the image in the panel. So of course the assignment of the file template didn’t work. Because the method is only called by the template file for the frontend.
It works now. Thank you for the help & patience!