adding params.relative to options

the relative flag currently does not work because the option is not passed to the transform function