Allow dragging image layers

Creates a tool which allows the current image layer to be dragged with the mouse.
Duplicated `private:`