Mechanisms of photoreceptor death and survival in mammalian retina