M31, Andromeda, Galaxie