Added a threshold slider to the square dialog.