started with ex 13_bonus and refactoring of kernel and opencv helper functions