fix pic-upload bugs