Adding move/resize tools, plus functions returning the shape under the cursor