forked from 1b-agent/opencadstudio-upstream
When add_entity receives a RasterImage without a definition_handle, create an ImageDefinition object in document.objects and link it. This ensures DWG/DXF files save the IMAGEDEF section correctly so other CAD programs can resolve image paths on reload. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>