[nim, Felix] Externalising taking of screenshots into a decorator.