Add force transformation to rigid transformation function, it modify the registration transformation. And let the concatenating function including the  boundaries.