separates the functionality of downloading the images and splitting them