imageGUI: reduce variable scope.