issue#29 fix for screenshots stopping at viewport height - contrib by @DylanDonkersgoed