For performance reasons it may be better to use readline, but we can do that inn the future. Id not depend on an OC_Image for the set image function. Simly pass a path in the constructor, instantiate the image when calling render and return $image->data();