When seeing artist's impressions of galaxies they always look somewhat like this:
They also look like this, although we might disagree over the word "somewhat" :)
A mixture of shapes, as galaxies collide, evolve over time, and get pulled apart by other galaxies.
The reason spiral shaped galaxies maintain their shape is possibly because there are density waves passing through them.
From: Spiral Arms Wikipedia.
The pioneer of studies of the rotation of the Galaxy and the formation of the spiral arms was Bertil Lindblad in 1925. He realized that the idea of stars arranged permanently in a spiral shape was untenable. Since the angular speed of rotation of the galactic disk varies with distance from the centre of the galaxy (via a standard solar system type of gravitational model), a radial arm (like a spoke) would quickly become curved as the galaxy rotates. The arm would, after a few galactic rotations, become increasingly curved and wind around the galaxy ever tighter. This is called the winding problem. Measurements in the late 1960s showed that the orbital velocity of stars in spiral galaxies with respect to their distance from the galactic center is indeed higher than expected from Newtonian dynamics but still cannot explain the stability of the spiral structure.
Since the 1960s, there have been two leading hypotheses or models for the spiral structures of galaxies:
Star formation caused by density waves in the galactic disk of the galaxy.
The SSPSF model – star formation caused by shock waves in the interstellar medium.
These different hypotheses do not have to be mutually exclusive, as they may explain different types of spiral arms.