Correct scale for slides with 512 tiles.  Also fix for closed polyline paste bug.
Merge branch '512-bug'

* 512-bug:
  Correct scale for slides with 512 tiles.  Also fix for closed polyline paste bug.