fixing number of images pulled