fixed picture upload bug