Geometric deformations of orthogonal and symplectic galois representations