Added patchsize and neighboordhood as options.