This allows to create images independent from screen resolution Replaced copy-pasted screenshot code with the single implementation