This script simply allows to center a layer on the image canvas. You can choose to center it horizontally, vertically or both.