upload images problem

fix url_relative_path error on windows
make upload path auto
fix pic save incomplete
fix 'thumb image return none error'
remove an extra 'return' token
fix dynamic gif thumb error