Adding method to take screenshot