CHANGED:applied the upload image function at relevant segue