Exhibit 10.4 AMENDED AND RESTATED OPTION AGREEMENT dated August 15, 1997