Splitted the js for upload image
Upload image