Add some functions to pattern.ToSVG()

Added hack to support repeat and offset to svg export.

Repeat property is not really supported in SVG, but with a simple hack we can get it.

![image](https://cloud.githubusercontent.com/assets/1194048/4783849/4151ff6a-5d38-11e4-8ad8-1aee257932dc.png)