Fix upload pic bug