Design of CMOS Based Image Sensor with Cantilever Mechanism for Smart Pathological Detection with Opto-Mechanical System