Merged work from edit tool (moving location-wise) to scale tool.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>