Frame tool: snap to nearest px; fix modified test

* Snap to the nearest pixel intersection
* Fix the "frame modified" test to allow smooth passage through
  the original frame size when dragging

Fixes #19