work on api and image upload