fixed minor syntax typo in calcAndSetNewImageCenter