Added cenetering for cropping method