Get the values of first pixel of first image, get the values of first pixel of second image, ...., until 10th image..., average the values and output the averaged value as the first pixel of your output image.
Repeat the step on every pixel...then you can get the average image.