add screenshot sample code