optimize Dx and Dy calcualtion to make it as single opencl kernel

optimize border processing
kernel expanded to work with 5x5 and 7x7 kernel sizes