added upload functionality

added two functions:

uploadImage - for uploading a file from user device

uploadImageFromUrl - for uploading a file from a specified URL.