Fix upload picture bug, close #31