Moved declaration to fix exit image action.