fix bugs on host and device sides for imgprog_sobel3.cl