Kernel size is in pixels and other minor modifications