fixed some OpenCL errors in image gradient