php script for getting batches of images from websites