uncoupled screenshot code from area dialog.
refactored select area dialog.