snap to grid on release; closes #25