Modify radial gradient 'r' attribute calculation