add panning of sprites and background