Measurement of Wγ and Zγ production in pp collisions at sqrt(s)=7TeV