Save/restore the program icon when entering/exiting edit mode