Renamed resolveMedia
Removed asserts.
Added inline and refence images.