Guys, thanks for the feedback. Here is my another attempt to fix the zoom issue. Please take time to give feedback if it works or not so I would know. I made 2 builds because I have a doubt about how a variable affects the image scaling. If you can test them both, it would be great. I also added more adb debugging messages. If it doesn't work, please try to make an adb log.
theos0o also told me he found out that there is no 320x240 and yet SGS works. I haven't looked at it yet but I think he is working on it as a possible solution.
Anyway, these test builds (2 builds) are "all-in-one" builds where you can configure the tweaks you want to enable. I attached the image where you can see the configuration.