Handle relative paths for images
Created by: lavendthomas
Currently, images are correctly shown in the inline preview by replacing the relative paths with an absolute path when loading the image.
It doesn't work in the preview or in the exported files yet.