fix bugs on setImageRegistrationMode

 setImageRegistrationMode doesn't change depth mode before.