Input and output image accessible from kernel.
Removed unnecessary unique_ptr