add zeroBased option to start loading images at 0 instead of 1