GEM-based gaseous photomultipliers for UV and visible photon imaging