img uploadfunction update