Fixes #5779 with new PSPScreenShotDialog class

Fixes #5779 

Mostly copy and paste .Point me out if find something wrong.