remove url ref
centralize the conversion from absolute url to fileUrl and dataUrl
handle container object option outside of container
use the widget element for container refs