Taking a screenshot without freezing

Description

Main code

Comments