Is it possible to proxy to a file with routes?

Is it possible to do something like this with routes?

In my scenario, there is a handwritten ‚ÄúSignature‚ÄĚ image that is being supplied in the panel.

  array(
    'method' => 'GET',
    'pattern' => 'proxy/signature',
    'action' => function() {
      $site = kirby()->site();
      $home = $site->pages()->find('home');
      $signatureString = $home->signature();
      $signatureImage = $home->files()->find($signatureString);
      if ($signatureImage) {
        // making this part up..
        return response::image($signatureImage);
      } else {
        return // fallback image
      }
    }
  ),

Try this:

c::set('routes', array(
  array(
      'method' => 'GET',
      'pattern' => 'proxy/signature',
      'action' => function() {

        $site = kirby()->site();
        $home = $site->pages()->find('home');
        $signatureImage = $home->signature()->toFile();

        if ($signatureImage) {
          $img = f::read($signatureImage->url());
          echo new Response($img, 'image/jpeg', 200);
        } else {
          return; //fallback image
        }

      }
    ),
));