public static function getImageClient($organization, $apiKey, $options = [])
    {
        $baseUrl = BaseClient::DEFAULT_API_BASE_URL;
        if (!\is_array($options)) { // $options was introduced later, if that is an array, we're on the new sig, nothing to change
            if (\func_num_args() > 3) { // if more than 3 args, the 4th is the baseUrl
                $baseUrl = func_get_arg(3);
            } elseif (3 === \func_num_args()) { // if exactly 3 args
                //if $baseUrl doesn't start with http, it may be a secret from the old signature, remove that, it's not used anymore
                if ('http' !== substr($options, 0, 4)) {
                    $baseUrl = BaseClient::DEFAULT_API_BASE_URL;
                } else {
                    $baseUrl = $options;
                }
            }
            $options = [];
        } else {
            if (isset($options[self::API_BASE_URL])) {
                $baseUrl = $options[self::API_BASE_URL];
            }
        }

        $client = self::getGuzzleClient($baseUrl, $options);

        return new ImageClient($client, $organization, $apiKey);
    }