added picture functionality