Data reduction file preview: make the loading and plotting of images
faster by loading the data only once