add upload image and get image function