add some options and refactor

kernel width should also be 1 be default