some change on updatescrollbar

update 1s after upload img file instead of in the onload().
this will make it more comfortable when the file is big.
before change this, you must wait for the file download completely then
you can scroll the page, but now you can scroll it almost imidiately.
setTimeout() give the page some time to adjust the height after append.