[SD] Add upload image function.