Calculation of imaging errors of AWG