fix imageUpload()