An image sensor system for a medical procedure system includes a sensor array for generating image data for a scene and an orientation sensor directly mechanically connected to the image sensor. The orientation sensor generates an electrical signal indicative of orientation of the sensor array. A processor receives the image data and the electrical signal and generates an image of the scene, the image of the scene being altered to compensate for orientation of the sensor array.