Fixing relative image url when there is a suffix on the path