picture upload bug fix