Whole capture

This makes it being able to capture whole page.


duplication of code