To capture screen for printing