modify picture upload func