Multiple changes:
-added multi extension residual image handling
-added use residual image flag to the imnuit class initialization
-removed the despace call in the minuit class initialization