A method and an implantable system for insertion into a cavity of a person, comprising: an imaging element capable of acquiring an image of at least a portion of the cavity through an optical element and a porous inflatable enclosure arranged to enclose the imaging element and to enclose liquid that flows through the porous inflatable enclosure and contacts the optical element, wherein the liquid, when in contact with the optical element, reduces an aggregation of non-transparent material on the optical element while the implantable system is located in the cavity of the person.