Corrected problems with lineWidth and loop.

The final scaling was updating the frozen parameters. It is now done
using pure PDF scaling since the goal is just to adapt to the output format.

looping is detected and when no loop there is no filling.