upload picture bug fixed