          logger.warning("Draw Transparent selected, but the requested format does not support "
                         "transparency. Changing output format to 'png'")
          self.config["format"] = "png"
  
      def get_save_args(self):
          """ Return the save parameters for the file format """
          filetype = self.config["format"]
          args = list()
          if filetype == "jpg" and self.config["jpg_quality"] > 0:
              args = (cv2.IMWRITE_JPEG_QUALITY,  # pylint: disable=no-member
                      self.config["jpg_quality"])
 
</s> remove         self.format_dict = dict(jpg="JPEG", jp2="JPEG 2000", tif="TIFF")
        self.kwargs = self.get_save_kwargs()
 </s> add         self._format_dict = dict(jpg="JPEG", jp2="JPEG 2000", tif="TIFF")
        self._separate_mask = self.config["draw_transparent"] and self.config["separate_mask"]
        self._kwargs = self._get_save_kwargs() </s> remove     def cache_frame(self, filename, image) -> None:
 </s> add         logger.trace("in filename: '%s', out filename: '%s'", filename, retval)  # type:ignore
        return retval

    def cache_frame(self, filename: str, image: np.ndarray) -> None:
    def _get_save_args(self) -> Tuple[int, ...]:
        """ Obtain the save parameters for the file format.

        Returns
        -------
        tuple
            The OpenCV specific arguments for the selected file format
         """
          logger.warning("Draw Transparent selected, but the requested format does not support "
                         "transparency. Changing output format to 'png'")
          self.config["format"] = "png"
  
    def _get_save_args(self) -> Tuple[int, ...]:
        """ Obtain the save parameters for the file format.

        Returns
        -------
        tuple
            The OpenCV specific arguments for the selected file format
         """
    def _get_save_args(self) -> Tuple[int, ...]:
        """ Obtain the save parameters for the file format.

        Returns
        -------
        tuple
            The OpenCV specific arguments for the selected file format
         """
          filetype = self.config["format"]
          args = list()
          if filetype == "jpg" and self.config["jpg_quality"] > 0:
              args = (cv2.IMWRITE_JPEG_QUALITY,  # pylint: disable=no-member
                      self.config["jpg_quality"])
keep keep keep keep replace replace keep keep keep keep keep
 Convert: Add option to output mask separately for draw-transparent 
plugins/convert/writer/opencv.py