image.mk: add LegacyDevice wrapper to allow legacy image building code to be used...