Text this: A Bayesian network based sequential inference for diagnosis of diseases from retinal images