Capture only renders the given region

Before it rendered the whole page and then cut the image around the given region.
Now it renders only inside the region.

It fixed some of the memory problems I was having.