Adjusting number of images