pics

can successfully upload pics
some bugs fixed