build: image: fix build breakage of some images