Endoscopic imaging techniques and tools