fixes image load when not at base path