To perform pencil sketch effect and transition effects