New treatment for two main causes of blindness