Re-implement model diagram on motors tab.

See 79505e42eda71fe93c266015a45f200b39a79a91.