The island analogy is from a dhammapada verse, wherein the island is not overcome by any flood. Sn45.171; At Savatthi.
"Monks, there are these four floods. Which four? The flood of sensuality, the flood of becoming, the flood of views, & the flood of ignorance. These are the four floods.
The path is for crossing over, is also in the 45.171 if i remember correctly. As to how to cross;
Snp1.1;
But how is it, dear sir, that by not halting and by not straining you crossed the flood?”
“When I came to a standstill, friend, then I sank; but when I struggled, then I got swept away. It is in this way, friend, that by not halting and by not straining I crossed the flood.”
That is the imagery. The light imagery comes into play as well, also in the Dhp ie; 'surrounded by darkness; shouldn't you search for light?'
In the Darkness Sutta sn56.46;
"There is, monks, an inter-cosmic[1] void, an unrestrained darkness, a pitch-black darkness, where even the light of the sun & moon — so mighty, so powerful — doesn't reach."
When this was said, one of the monks said to the Blessed One, "Wow, what a great darkness! What a really great darkness! Is there any darkness greater & more frightening than that?"
"There is, monk, a darkness greater & more frightening than that."
"And which darkness, lord, is greater & more frightening than that?"
"Any brahmans or contemplatives who do not know, as it actually is present, that 'This is stress'; who do not know, as it actually is present, that 'This is the origination of stress'... 'This is the cessation of stress'... 'This is the path of practice leading to the cessation of stress': They revel in (thought-) fabrications leading to birth; they revel in fabrications leading to aging; they revel in fabrications leading to death; they revel in fabrications leading to sorrow, lamentation, pain, distress, & despair. Reveling in fabrications leading to birth... aging... death... sorrow, lamentation, pain, distress, & despair, they fabricate fabrications leading to birth... aging... death... sorrow, lamentation, pain, distress, & despair. Fabricating fabrications leading to birth... aging... death... sorrow, lamentation, pain, distress, & despair, they drop into the darkness of birth. They drop into the darkness of aging... the darkness of death... darkness of sorrow, lamentation, pain, distress, & despair. They are not totally released from birth, aging, death, sorrows, lamentations, pains, distresses, & despairs. They are not totally released, I tell you, from suffering & stress.
So it can be seen that if ignorance is darkness then knowledge is light. This is often seen in the Sutta where people praise a good discourse for lighting a lamp for those with eyes to see.
Else such as Tamonata Sutta speaks of darkness and light as favorable and unfavorable conditions. Another example is snp2.6;
"A quarrelsome bhikkhu shrouded by delusion, does not comprehend the Dhamma taught by the Awakened One when it is revealed. Annoying those practiced in meditation, being led by ignorance, he is not aware that his defiled path leads to Niraya-hell. Falling headlong, passing from womb to womb, from darkness to (greater) darkness, such a bhikkhu undergoes suffering hereafter for certain.