Add picture upload function