Best thing to get for a retained eyecap is a lubricating eye ointment (same thing you would use on your self), and put it on once a day with a Qtip. Worked wonders for a rescue I had come in with multiple retained eyecaps.

But honestly, that does not look like a retained eyecap, but more of an infection or parasite.