Example for creating a screenshot in iOS