Calculate the mean image for all training samples in class 0