Photoproduction of π+ mesons on polarized protons at photon energies between 0.5 and 2.2 GeV