fixed centering sprite logic for Y