bugfix to BorderMedian - missing dims assignment.