fixed upload picture bug