I'm not really seeing a difference between web/print.
It seems to me that in addition to storing the original filename, you would just need to also save the pathname, be it a full path if outside a project folder or a relative path if in or under the project folder.
This is akin to what happens in a layout application. Output to the various export options--whether the export is to pdf, eBook, html5, etc.--doesn't alter the original image even when/if the image is sized at other than 100%, had various image effects applied, etc. But the effects/sizing is carried into the output format.
Bookmarks