fixing image path issues in the admin when using a relative path setting