Photoproduction of ρ and f mesons and energies up to 5.8 GeV