Support reading data from imagelist, sample with ratio