gc:ModeSelectMode and gc:ImageMode refactoring