fix to make all paths to images relative