add option to adjust number of preload images and add option to always preload full directory