code: private function overwriteImageTargetDir(array $config, ContainerBuilder $container): void
      {
          if (!isset($config['image']['target_path'])) {
              return;
          }
  
          $container->setParameter(
              'contao.image.target_dir',
              $container->getParameter('kernel.project_dir').'/'.$config['image']['target_path']
          );
  
          @trigger_error('Using the contao.image.target_path parameter has been deprecated and will no longer work in Contao 5.0. Use the contao.image.target_dir parameter instead.', E_USER_DEPRECATED);
      }
docs: Reads the old contao.image.target_path parameter.