src/ImageResponse.php
public function withBody(StreamInterface $body)
    {
        if (!$body instanceof ImageStream) {
            throw new \RuntimeException;
        }

        $response = clone $this;

        $response->image = null;
        $response->stream = $body;
        $response->headers = $this->removeXsendfileHeaders($this->headers);

        return $response;
    }
public function withBody(StreamInterface $body)
    {
        if (!$body instanceof ImageStream) {
            throw new \RuntimeException;
        }

        $response = clone $this;

        $response->image = null;
        $response->stream = $body;
        $response->headers = $this->removeXsendfileHeaders($this->headers);

        return $response;
    }
{@inheritdoc}