fixed bug with picture upload