Emittance degradation due to wake fields in a high brightness photoinjector