The problem is that your parameter list has 2 two ?'s.  I would change the fetch method to take an optional $params parameter:

public function fetch($method, $resource, $params = array(), $body = '') {
    // Cast, just in case
    $params = (array)$params;
    // Add mandatory parameters
    $params['oauth2_access_token'] = $_SESSION['access_token'];
    $params['format'] = 'json';

    // Need to use HTTPS
    $url = 'https://api.linkedin.com' . $resource . '?' . http_build_query($params);
    // Tell streams to make a (GET, POST, PUT, or DELETE) request
    $context = stream_context_create(
            array('http' =&gt;
                array('method' =&gt; $method,
                )
            )
    );

    // Hocus Pocus
    $response = file_get_contents($url, false, $context);

    // Native PHP object, please
    return json_decode($response);
}


And call it like so:

$groupData = $this-&gt;linkedin-&gt;fetch('GET', "/v1/groups/{id}/posts", array("count" =&gt; 20, "start" =&gt; 0));


I can't control the count of records returned by the linkedIn api
I am trying to make a binary image. I want more than just the look of the image to be black/white, but I want the actual file to be a binary file. Every pixel should be either black, or white. 

I don't just want a monochrome image. I can't have varying shades of gray, every pixel needs to be black or white.

Is this possible? I looked under Image > Mode but nothing there seems to indiciate a binary style image.
