tempfix for caching middleware
make image rendering work