protected function initializeResponder($request)
{
$config = new ResourceManager(__DIR__);
$config->setPath('cache', 'tmp/cache');
$config->setPath('files', 'images');
$config->compat();
$app = new Application(array('resources' => $config));
$app->register(new \Bolt\Provider\CacheServiceProvider());
$responder = new ThumbnailResponder($app, $request);
$responder->initialize();
return $responder;
}