Why are my images referred to by keydefs imported as resources?
You can set the format attribute to import the images correctly.
Description
Images imported as part of a keydef map are imported as resources instead of as
images. For
example:
<map>
<keydef href="image.png" keys="TestImage"/>
</map>
Solution
To import images referenced by a <keydef> element, set the format
attribute to the value "image". For
example:
<keydef href="image.png" keys="TestImage" format="image"/>