added picture upload functionality