No photos visible in essays after update to Koken 0.11

In Koken 0.11 the query string has changed and so the if had to be
modified