[yptx] add upload image function.