code: protected function reportAdditionalStorageClaimed($bytes)
      {
          $legacyFileName = PATH_site . 'typo3conf/.tx_imageautoresize';
          $fileName = PATH_site . 'typo3temp/.tx_imageautoresize';
  
          // Note: transfer of legacy filename should be removed after some time
          if (file_exists($legacyFileName) && !file_exists($fileName)) {
              @rename($legacyFileName, $fileName);
          }
  
          $data = [];
          if (file_exists($fileName)) {
              $data = json_decode(file_get_contents($fileName), true);
              if (!is_array($data)) {
                  $data = [];
              }
          }
  
          $data['bytes'] = $bytes + (isset($data['bytes']) ? (int)$data['bytes'] : 0);
          $data['images'] = 1 + (isset($data['images']) ? (int)$data['images'] : 0);
  
          GeneralUtility::writeFile($fileName, json_encode($data));
      }
docs: Stores how many extra bytes have been freed.
  
  @param integer $bytes
  @return void