Point-of-care diagnostics using smartphone based endoscope system