Motorized capsule for shadow-free OCT imaging and synchronous beam control