added buffers for x,y position of image data to the kernels