A coupling assembly for a scope and an image sensor housing is disclosed generally comprising an image orientation unit (36) having first (38) and second coupling sections (40) for coupling the unit to a scope and an image sensor housing, such as a camera head (12), an optical assembly with a rotatable optical element for rotating the images, a rotation sensor for monitoring rotation of the optical element, an accelerometer (18) for monitoring rotation of the unit (36), and a processor (16) for receiving signals from the rotation sensor and the accelerometer (18) and calculating the orientation of the images relative to the direction of gravity.