Heya. Welcome to the forum.
I believe you’re not sending the image correctly. Check the API docs… Here’s a good post with some hints…