Add check that the downsample factor are ints.