If you take AI image (that cannot be copyrighted) and adjust it in photo edition software of your choice then the changes are potentially copyrightable and the resulting image can be copyrighted (you need to ensure that your changes pass the low bar of creativity).
It's not clear to me how much code you would need to modify by hand to qualify for copyright this way, but that's not an impossible avenue.