Support for pasing input images as Buffers as well