public function copyMemory(): Image
    {
        Utils::debugLog('copyMemory', [
            'instance' => $this,
            'arguments' => []
        ]);

        $result = vips_image_copy_memory($this->image);
        if ($result === -1) {
            self::errorVips();
        }
        $result = self::wrapResult($result);

        Utils::debugLog('copyMemory', ['result' => $result]);

        return $result;
    }