fix #41906: make screenshot mode rectangle appear within current view

When enabling screenshot mode, center rectangle in current view unless previous rectangle exists and would be within view.