Firstly generate the screenshot