Fixes issue with relative image paths.