Revert "A bit more tinkering on the screenshot logic."

This reverts commit ad89d861e27afcf47dd888720f0247079469d78b.