Add scale_deformation feature

Still errors in scale_deformation