Set and reset alt attribute