change API in order to send image correctly