Ok, if you would like to load the complete dataset into memory, you could use the aforementioned approach.
However, if you would like to lazily load the images, you could have a look at memmapped numpy arrays 14 or alternatively this should also be possible with HDF5.