added upload API function
make sure not to upload images into git.