public function encoding($mode)
    {
        $encodings = [
            self::ENCODING_JPG,
            self::ENCODING_BMP,
            self::ENCODING_GIF,
            self::ENCODING_PNG,
        ];

        $this->assertInArray($mode, $encodings);

        $this->valueArguments['encoding'] = $mode;

        return $this;
    }