Photoproduction of pions in chiral bag models