Glaucoma and diabetic retinopathy diagnosis using image mining