refactored 3d image gradient kernel