OK, $app->run() should not be in bootstrap.php. Fixes thumbnails.