Relative path resolution

Both media files below are referenced with paths relative to this document.

Loaded from a relative path
Image · ../myfolder/testdata/IMG_2578.JPG
Video · ../myfolder/testdata/sample-640x480.mp4