Any nonconforming building or any building containing a nonconforming use, which has been damaged by fire or other cause, may be rebuilt and used as before if such reconstruction is completed within one year of such damage. However, if such building or structure has been damaged to an extent exceeding 50 percent of its replacement cost at the time of such damage or destruction, as determined by the building inspector, any repair, reconstruction, or use of such building or structure shall be in conformity with the provisions of this ordinance.