add screen shot function