changed all OpenCL code to image2d