The Role of Flexoelectricity in Pattern Formation