This is an helper class to make screenshot to the view or to the screen with openGL and AVFoundation stuff, and manage the screenshot cropping a rect and scaling it.