Global shutter cmos sensor