Added an option to close gaps while rotating