def makeArgs(self, img):
        args = []
        args.extend(self._args)

        if self._language is not None:
            args += ['--language', self._language]
        if self._output is not None:
            args += ['--output', self._output]
        if self._format is not None:
            args += ['--format', self._format]
        if self._output_image_dir is not None:
            args += ['--output-image-dir', self._output_image_dir]