protected function registerResponse()
    {
        $app = $this->app;
        $type = $this->app['config']->get('jitimage::response-type', 'generic');

        $response = sprintf('Thapp\JitImage\Response\%sFileResponse', ucfirst($type));
        $this->app->bind(
            'Thapp\JitImage\Response\FileResponseInterface',
            function () use ($response, $app) {
                return new $response($app['request']);
            }
        );
    }