added picture switching