fix uploading to API
working image integration