fix picture upload problem