AI Studio isn't doing what I ask for

I am working on an app to manipulate images. For this purpose, I can upload images to it or drop them from the local machine or from a website. I told the AI to keep a list of properties for every file I add. I also told the AI to add additional information when a file gets dropped on the app, as I want to know if it’s a local file or from another website. And in the case of images, it should display the resolution with the properties. And for web-drops it needs to download the image.

But it takes many attempts to get this to work, and it tends to break other functionality. And it keeps refusing to download the image if it’s a web drop. (The drop object then holds the URL.) I am struggling for half an hour now for this simple functionality, and whenever it seems to do what I want, it tends to remove something else.

It seems the AI seems to do things in its own way without any regard for my instructions. It should do what I ask it, but it thinks it can improve things and thus make changes that I did not request. Adding: “Follow my instructions strictly without deviating from it or adding more than requested.” does not help either.

What is worse, AI Studio likes to make changes to the user interface even though I just ask it to change some functions without touching the UI. I know it tries to be helpful, but this is too helpful and frustrating.

Right now, I am trying to make a basic framework for handling images. I want to branch this project into multiple projects, where each project will do something different with the images. But as I am struggling with even making this framework work as I want, I fear that this project is doomed to fail.