Modified the calculation for the X and Y position of the toast.

Instead of the actual X and Y position of the toast, the center point is
calculated. This will ease the calculation of the different gravities.