Extract constant for number of images