Add a picture buffer pool
Reuse buffers allocated for picture data instead of constantly freeing and allocating new ones.
The impact of this can vary significantly between different systems, in particular it's highly beneficial on Windows where it can result in an overall performance increase of up to 10% in some cases.