increase iterations on loop to allow for maximum number of images