Automated Segmentation And Pathology Detection In Ophthalmic Images