fix url resolving in style attribute