\OCP\Image depend on the private \OC\Image so instead create a factory that give you a \OCP\IImage (the interface)
\OCP\Image depend on the private \OC\Image so instead create a factory that give you a \OCP\IImage (the interface)