In this study we present first results from a new detector of UV photons: a thick gaseous electron multiplier (GEM) with resistive electrodes, combined with CsI or CsTe/CsI photocathodes. The hole type structure considerably suppresses the photon and ion feedback, whereas the resistive electrodes protect the detector and the readout electronics from damage by any eventual discharges. This device reaches higher gains than a previously developed photosensitive RPC and could be used not only for the imaging of UV sources, flames or Cherenkov light, for example, but also for the detection of X-rays and charged particles.