update header picture upload function