process images to array, save/load arrays from hd