fixed syntax error in 3d image gradient kernel