Fixed issue with numbering of downsampled images if more than one detector is present.