Reusing our functions to load the image and label files