retrive a certain number of images from a redis server and store them locally