A device including at least one image sensor and a circuit board (Fig. 1) having a plurality of rigid sections and a plurality of flexible sections. The image sensor is disposed on a rigid section of the circuit board. The circuit board may be folded into a housing configured for in vivo sensing.