Vector meson dominance model and π± production by unpolarized and linearly polarized photons