Allocate a temporary buffer of the size of the render window instead of
the image bounds.