images: fixing generation of image include files