private function convertVideoToImage($resource)
    {
        $temporaryFilePath = $this->createTemporaryFile($resource);
        $this->videoThumbnail->generate($temporaryFilePath, '00:00:02:01', $temporaryFilePath);

        $extractedImage = file_get_contents($temporaryFilePath);
        unlink($temporaryFilePath);

        return $this->createTemporaryResource($extractedImage);
    }