split unwrap steps in to their own function
unwrap the centered square sub-region of rectangular inputs