add bg scroll modes, update sample to latest lib