CHANGED:seperate the ImageUpload function to facade successful