fix bugs on setImageRegistrationMode
Merge pull request #44 from wpjsolo/master

Fix setImageRegistrationMode (@wpjsolo)