Fix error in image_iterator when C is not in metadata['DimensionOrder']