Fix issue with relative paths to image files