[image, include] generate image header at compile time, fix includes