Screenshot without freezing (more complex solution)

Description

Main code

Comments