In Symbols of Transformation, Carl Jung speaks of the ‘cosmic man’, drawing upon a passage from the Shvetashvatara Upanishad:
“Without feet, without hands, he moves, he grasps; eyeless he sees, earless he hears; he knows all that is to be known, yet there is no knower of him. Men call him the Primordial Person, the cosmic man. Smaller than small, greater than great ….” (cited in CW5, para. 182)
Ganesha is an image of the supreme Self as deity; and, he is an image of enlightenment as the divine child.
In the painting above, we see the Ganesha Panchayatana. The Pañcāyatana pūja is a form of worship introduced by Adi Shankara, in the 8th century. In the center of the image, we find Ganesha surrounded by four deities: Shiva, Devi (Parvati), Vishnu and Surya. Adi Shankara, philosopher and theologian, understood that all deities are images or forms of the supreme Self (known as Brahman). In this painting, Ganesha is the central image and thus an image of the supreme Self.
In the image above we see Bala Krishna offering a butter ball. Bala Krishna (Bālakṛṣṇa) is often translated as ‘Divine Child Krishna’.
In the Bhagavad Gita, Kristhna reveals himself as “the supreme Self, the eternal Lord, who enters into the entire cosmos and supports it from within.” The Bhagavad Gita (4th century in written form), Adi Shankara (8th Century) and Carl Jung (20th Century) all understood that the deity is an image of the cosmic Self or supreme Self.
According to Carl Jung, the qualities associated with the mother archetype are:
“maternal solicitude and sympathy; the magic authority of the female; the wisdom and spiritual exaltation that transcend reason; any helpful instinct or impulse; all that is benign, all that cherishes and sustains, that fosters growth and fertility.” 
In Hinduism, the mother goddess offers all of these traits, plus more. She is also the form of cosmic power and revelation.
The goddess is the slayer of demons; she defeats spiritual ignorance with her comic power. She empowers even the gods– Brahma, Visnu, and Shiva– who are powerless to battle the great demons of ignorance.
The goddess expresses herself through three primal aspects of the cosmos: creation, maintenance, and destruction. She reveals herself in the three primal forms: Prakriti (nature), expressing the primal material energy of which all matter is composed; Maya (illusion), expressing our illusionary attempts to measure the infinite; and Shakti (power), the primal power of the Cosmic Self and bestower of liberation.
In the image above we see Vishwarupa, a cosmic form of Vishnu. Vishnu ( विष्णु) is the Supreme God of Vaishnavism, one of the major traditions within Hinduism.
Vishnu is depicted as the one “who has neither a beginning nor an end” and as “the great effulgence.” He is “pure consciousness.” He is depicted as having “a thousands or infinite heads, thousands of eyes and thousands of feet.” For some Vishnu is known primarily as a deity of worship and for others he is an image of the csomic Self.
According to Shankara’s commentary on the Ten Principle Upanishads, Vishnu is the form of Brahman, the supreme Self and eternal Truth. Ultimately, all things are are representations of eternal Truth. Vishwarupa is a reminder of this truth.
We cannot perceive the true nature of Brahman (the supreme Self) by form or by properties. The supreme Self is neti neti, ‘not this, not this.” Because the eternal Truth is beyond representation, we represent this Truth in images and forms of the deity, such as Vishnu or Indra. Shankara says as much in his commentary on the Keno Upanishad
The Keno Upanishad states:
“What speech does not enlighten, but what enlightens speech, know that alone to be Brahman [the Supreme Self], not this which (people) here worship.” (Keno Upanishad, Verse 4)
“The preceptor conveyed that Atman is Brahman, the disciple doubted how the Atman could be Brahman. The Atman as is well-known, being entitled to perform Karma and worship (of the gods) and being subject to births and re-births seeks to attain Brahma or other Devas, or heaven, by means of Karma or worship. Therefore, somebody other than the Atman, such as Vishnu, Ishvara, Indra or Prana is entitled to be worshiped”….
“So says the Sruti [most authoritative, ancient religious texts], know this Atman to be the Brahman, unsurpassed.” (Shankara’s comment on Verse 4 of the Keno Upanishad)
What Shankara seems to be saying is that we can worship Vishnu, or Ishvara, or Rudra or Indra, but these are all simply images of the supreme Self (Brahman).
Carl Jung also understand the Self to the archetype that gives rise to the god image. In Symbols of Transformation (CW 5), Jung speaks of the God Rudra, quoting a passage from the Shvetashvatara Upanishad:
There is one Rudra only, they do not allow a second, who rules all the worlds by his powers. Behind all creatures he stands, the Protector; having created them, he gathers all beings together at the end of time. He has eyes on all sides, faces on all sides, arms on all sides, feet on all sides. He is the one God who created heaven and earth, forging all things together with his hands and wings. You who are the source and origin of the gods, the ruler of all, Rudra, the great seer, who of old gave birth to the Golden Seedgive us enlightenment! (In Jung, para 176).
Jung says: “behind these attributes we can discern the All-Creator,” confirming the idea in the following passage:
“Beyond this is Brahman , the highest, hidden in the bodies of all, encompassing all. Those who know him as the Lord become immortal.”
Notes and references:
Upanishads and Sri Sankara’s commentary, translated by S Sitarama Sastri p. 30- 60.
The Esoteric Codex: Deities of Knowledge by Harold Burham
Please note that Jung uses the word ‘Brahma’ here when it should probably be Brahman. I have found that it is common for scholars of this era to say Brahma when they mean Brahman. I offer Max Müllers interpretation fromSacred Books of the East Volume 15: The Upanishads. “Those who know beyond this the High Brahman, the vast, hidden in the bodies of all creatures, and alone enveloping everything, as the Lord, they become immortal.”