Multi-mode fiber (MMF) endoscopes are extremely thin and have higher spatial resolution than conventional endoscopes; however, all current MMF endoscope designs require either that the MMF remain rigid during insertion and imaging or that the orientation of the MMF be known. This limits their possible medical applications. We describe an MMF endoscope design that allows the MMF to be arbitrarily bent as it is maneuvered to the target site prior to imaging. This is achieved by the addition of a partial reflector to the distal end of the MMF, which allows measurement of the mode coupling in the MMF using the reflected light arriving at the proximal end of the MMF. This measurement can be performed while the distal end of the endoscope is not directly accessible, as when the endoscope is being maneuvered. We simulate imaging through such a flexible MMF endoscope, where the MMF is step-index with 1588 spatial modes, and obtain an image even after the mode coupling matrix of the MMF is altered randomly, corresponding to an unknown bending of the MMF.