Initial assignment of numImages is required.