Fix for oversmoothing in generate_random_smooth_deformation - Issue #4