Added ability to take screenshot of UIView.