made changes related to  image uploading