You can add all your images into one Matrix, where the third dimension reprents the number ouf your image.
matrix[:,:,1] %first image
matrix[:,:,2] %second image and so on
Then you can simply search the maximum value at each Pixel along the third axis using
C = max(matrix,[],3)