The third layer is the gelatin binder that holds the silver grains of the photographic image.
Before a paper is exposed, the image layer is a clear gelatin matrix holding the light-sensitive silver halides.