find the position and number of images.