public function saveAdditionalFields(array $submittedData, \TYPO3\CMS\Scheduler\Task\AbstractTask $task)
    {
        /** @var $task \Causal\ImageAutoresize\Task\BatchResizeTask */
        $task->directories = trim($submittedData['scheduler_batchResize_directories']);
        $task->excludeDirectories = trim($submittedData['scheduler_batchResize_excludeDirectories']);
    }