img: Need to dynamically generate the _ERR include files

Now that they were removed from the repository in a previous
commit (effd35a7c335c4c6a9802699cf9d4cc06be54e61)