Damaged metal roof to be replaced at Montana city library