Fixes paths for images.