A nonconforming building destroyed by fire, explosion, act of God or any other casualty to an extent equal to or greater than 50 percent of replacement cost at the time such destruction occurred as determined by the building official may be rebuilt or replaced in full compliance with all standards of this chapter and other city codes, or shall be demolished at the option of the owner. Rebuilding or replacement shall be accomplished and a certificate of occupancy shall have been issued within 12 months of such destruction. The building official may grant an extension of up to six additional months upon issuing a written finding that the owner has diligently pursued re-construction of the building. The building shall thereafter comply with all standards of this chapter and other city codes.