image upload function (almost done)
image upload function (almost done)