Under the hood: How Drishti works