work in progress capturing the viewport