fixing bugs and add alt attributes