Added a sample to capture screen buffer