upgraded rest api - added upload of picture