Added sprite switching to demo