bug fix picture upload finished