Hm, no, I return the data of the image. In short:
```php
$image = new \OC_Image();
$this->image = $image->data();
return $this->image;
```