Copy data before manipulating/drawing
Merge pull request #156 from andig/fix-data-shift

Copy data before manipulating/drawing