use renderer to create media links

This is required to enable pdf export attach files.