Fixed bug in sprite.center()